package com.wx.mapper;

import com.wx.entity.WechatUserSession;
import java.util.List;

public interface WechatUserSessionMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(WechatUserSession record);

    WechatUserSession selectByPrimaryKey(Integer uid);

    List<WechatUserSession> selectAll();

    int updateByPrimaryKey(WechatUserSession record);
    
    WechatUserSession findByOpenid(String openid);
    
    void updateToken(Integer uid, String token);
    
    Integer selectUidByToken(String token);
}